#include<stdio.h>
#include<string.h>
#include<math.h>
int main(){
	int i=0,sum=0;
	char a[102];
	char b[10][5]={"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};
	do{
		a[i]=getchar();i++;
	}while(a[i-1]!='\n');
	a[i-1]='\0';
	for(i=0;i<strlen(a);i++){
		sum+=a[i]-48;
	}
	int sum1=sum;
	for(i=0;sum1!=0;i++){
		sum1/=10;
	}
	int n=i;
	for(i=n-1;i>-1;i--){
		int t=pow(10,i);
		if(i>0){
			printf("%s ",b[sum/t]);
		}else{
			printf("%s",b[sum/t]);
	 }
		sum%=t;
	}
	return 0;
}
